package com.wuxb.pool;

public class MyTask implements Runnable {

    private int num;

    public MyTask(int num){
        this.num = num;
    }

    public void run() {
        try {
            Thread.sleep(2000 );
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("task run"+num);
    }
}
